import QtQuick
import QtQuick.Controls

Loader {
    // source: "qrc:/pages/MainPage.qml"
    // visible: currentPage === "main"
    anchors.fill: parent
    opacity: visible ? 1 : 0
    scale: visible ? 1 : 0.95
    Behavior on opacity {
        NumberAnimation { duration: 300; easing.type: Easing.InOutQuad }
    }
    Behavior on scale {
        NumberAnimation { duration: 400; easing.type: Easing.OutBack }
    }
}
